<?php
	
?>

<div>
	<table >
		<caption>Пользователи</caption>
		<thead>
			<tr data-bind="foreach:userTable().model.head">
				<th data-bind="text:$data"></th>
			</tr>
		</thead>
		<tbody data-bind="foreach:userTable().model.body">
			<tr data-bind="foreach:items, click:click"  >
				<td data-bind="text:$data"></td>
			</tr>		
		</tbody>
	</table>
</div>


<script>
	var tmp_string = <?php  echo json_encode($userTable); ?>;
	var _DATA = _DATA || {};
	_DATA['user'] = tmp_string;
</script>